package com.jy.adscm.hospital.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.jy.adscm.core.interceptor.DateJsonDeserializer;

import java.util.Date;
import java.io.Serializable;

/**
 * <p>
 * 竞争对手信息
 * </p>
 *
 * @author yyy
 * @since 2019-01-16
 */
public class JyHospitalCompeteHospital implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 医院名称
     */
    private String hospitalName;
    /**
     * 地址：省
     */
    private String addressSheng;
    /**
     * 地址：市
     */
    private String addressShi;
    /**
     * 地址：区县
     */
    private String addressQuxian;
    /**
     * 地址：详细
     */
    private String addressDetail;
    /**
     * 医院类别
     */
    private Long hospitalType;
    @TableField(exist = false)
    private String hospitalTypeDesc;
    /**
     * 医院级别
     */
    private Long hospitalLevel;
    @TableField(exist = false)
    private String hospitalLevelDesc;
    /**
     * 竞争科室
     */
    private String competeOffice;
    /**
     * 填写单位
     */
    private Integer inputUnit;
    @TableField(exist = false)
    private String inputUnitDesc;
    /**
     * 录入单位类型（厂商 经销商）
     */
    private Integer inputUnitType;
    /**
     * 输入用户
     */
    private Integer inputUserId;
    @TableField(exist = false)
    private String inputUserName;
    /**
     * 录入时间
     */
    private Date inputTime;
    /**
     * 关联的医院基础信息表ID
     */
    private Long baseId;
    /**
     * 关联的报单ID，如果这些数据是由经销商报单过程填写的话，就有这个formId，厂商填写的就没有，空的
     */
    private Long formId;

    public Long getFormId() {
        return formId;
    }

    public void setFormId(Long formId) {
        this.formId = formId;
    }

    public String getHospitalTypeDesc() {
        return hospitalTypeDesc;
    }

    public void setHospitalTypeDesc(String hospitalTypeDesc) {
        this.hospitalTypeDesc = hospitalTypeDesc;
    }

    public String getHospitalLevelDesc() {
        return hospitalLevelDesc;
    }

    public void setHospitalLevelDesc(String hospitalLevelDesc) {
        this.hospitalLevelDesc = hospitalLevelDesc;
    }

    public String getInputUnitDesc() {
        return inputUnitDesc;
    }

    public void setInputUnitDesc(String inputUnitDesc) {
        this.inputUnitDesc = inputUnitDesc;
    }

    public String getInputUserName() {
        return inputUserName;
    }

    public void setInputUserName(String inputUserName) {
        this.inputUserName = inputUserName;
    }
    public Long getBaseId() {
        return baseId;
    }

    public void setBaseId(Long baseId) {
        this.baseId = baseId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getHospitalName() {
        return hospitalName;
    }

    public void setHospitalName(String hospitalName) {
        this.hospitalName = hospitalName;
    }

    public String getAddressSheng() {
        return addressSheng;
    }

    public void setAddressSheng(String addressSheng) {
        this.addressSheng = addressSheng;
    }

    public String getAddressShi() {
        return addressShi;
    }

    public void setAddressShi(String addressShi) {
        this.addressShi = addressShi;
    }

    public String getAddressQuxian() {
        return addressQuxian;
    }

    public void setAddressQuxian(String addressQuxian) {
        this.addressQuxian = addressQuxian;
    }

    public String getAddressDetail() {
        return addressDetail;
    }

    public void setAddressDetail(String addressDetail) {
        this.addressDetail = addressDetail;
    }

    public Long getHospitalType() {
        return hospitalType;
    }

    public void setHospitalType(Long hospitalType) {
        this.hospitalType = hospitalType;
    }

    public Long getHospitalLevel() {
        return hospitalLevel;
    }

    public void setHospitalLevel(Long hospitalLevel) {
        this.hospitalLevel = hospitalLevel;
    }

    public String getCompeteOffice() {
        return competeOffice;
    }

    public void setCompeteOffice(String competeOffice) {
        this.competeOffice = competeOffice;
    }

    public Integer getInputUnit() {
        return inputUnit;
    }

    public void setInputUnit(Integer inputUnit) {
        this.inputUnit = inputUnit;
    }

    public Integer getInputUnitType() {
        return inputUnitType;
    }

    public void setInputUnitType(Integer inputUnitType) {
        this.inputUnitType = inputUnitType;
    }

    public Integer getInputUserId() {
        return inputUserId;
    }

    public void setInputUserId(Integer inputUserId) {
        this.inputUserId = inputUserId;
    }

    public Date getInputTime() {
        return inputTime;
    }

    @JsonDeserialize(using = DateJsonDeserializer.class)
    public void setInputTime(Date inputTime) {
        this.inputTime = inputTime;
    }

    @Override
    public String toString() {
        return "JyHospitalCompeteHospital{" +
        "id=" + id +
        ", hospitalName=" + hospitalName +
        ", addressSheng=" + addressSheng +
        ", addressShi=" + addressShi +
        ", addressQuxian=" + addressQuxian +
        ", addressDetail=" + addressDetail +
        ", hospitalType=" + hospitalType +
        ", hospitalLevel=" + hospitalLevel +
        ", competeOffice=" + competeOffice +
        ", inputUnit=" + inputUnit +
        ", inputUnitType=" + inputUnitType +
        ", inputUserId=" + inputUserId +
        ", inputTime=" + inputTime +
        "}";
    }
}
